<ul id="main_menu_img">
    <?php foreach ($this->categories as $sitePage): ?> <?php $this->classCounter++; ?>
		<li class="cat-<?php echo $this->classCounter; ?> category"><a title="<?php echo $sitePage['h1']; ?>" href="<?php echo $this->websiteUrl . $sitePage['url'] . '.html'; ?>" ><?php echo $sitePage['navigationTitle']; ?></a>
		<?php if (is_array($sitePage['pages']) && count($sitePage['pages']) > 0): ?>
			<ul id="<?php echo $sitePage['url']; ?>">
			<?php foreach ($sitePage['pages'] as $page): ?>
				<li class="page">
					<a class="imglink" href="<?php echo $this->websiteUrl.$page['url'].'.html'; ?>" title="<?php echo $page['h1']; ?>">
						<img alt="<?php echo $page['h1']; ?>" src="<?php echo $this->escape($this->websiteUrl.$page['path']); ?>" />
					</a>
					<a title="<?php echo $page['h1']; ?>" href="<?php echo ($page['url'] != 'index') ? $this->websiteUrl.$page['url'].'.html' : $this->websiteUrl ; ?>" ><?php echo $page['navigationTitle']; ?></a>
					<span><?php echo $page['description']; ?></span>
				</li>
			<?php endforeach; ?>
			</ul>
        <?php endif; ?>
		</li>
    <?php endforeach; ?>
</ul>